#!/bin/bash

sudo docker service create --name mongodb-service \
    --mount type=bind,source=/opt/data/todocker/data/db1,destination=/data/db \
	-p 27017:27017 \
	mongo:latest  \
    --directoryperdb
   

